//Include("mz.array");

/**
 * @fileoverview 删除数组里指定的项
 * @author meizz
 * @version 20090427
 *
 * @name mz.array.remove
 * @namespace mz.array.remove
 * @param {Array} array 被处理的数组
 * @param {Object} item 被删除的元素
 * @return {Array} 原始的数组
 */
mz.array.remove = function(array, item){
    for (var i = 0, n = array.length, a = []; i < n; i++) {
        if (array[i] != item) {
            a[a.length] = array[i];
        }
    }
    array.length=0;

    for (i = 0, n = a.length; i < n; i++) {
        array[i] = a[i];
    }
    a=null;
    return array;
};